﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZuesUI.Models;

namespace ZuesUI.ViewModels
{
    public class DataGridExpanderViewModel:BindableBase
    {
        private ObservableCollection<DataGridExpanderModel> _dataGridExpanderTestItem = new ObservableCollection<DataGridExpanderModel>()
        {
            new DataGridExpanderModel(){Name="张三",Address="DBDBD"},
             new DataGridExpanderModel(){Name="张三",Address="DBDBD"},
        };
        private string Titile = "绑定测试";
        public string Title
        {
            get { return Titile; }
            set
            {
                SetProperty(ref Titile, value);
            }
        }

        public ObservableCollection<DataGridExpanderModel> DataGridExpanderTestItem
        {
            get => _dataGridExpanderTestItem;
            set
            {
                SetProperty(ref _dataGridExpanderTestItem, value);
            }
        }
        public DataGridExpanderViewModel() 
        {
        
        
        }
    }
}
